package com.msunsoft.business.dictionary.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.msunsoft.business.dictionary.mybatis.dao.BdOriginDomainDrugMapper;
import com.msunsoft.business.dictionary.mybatis.model.BdOriginDomainDrug;


@Service
@Transactional
public class DrugCompareService {

    @Resource
    private BdOriginDomainDrugMapper drugCompareMapper;

    /**
     * 查询
     */
    public List<BdOriginDomainDrug> getBdDrugInfoReg(Map map){
        // TODO Auto-generated method stub

//        return drugCompareMapper.listHosDrugInfolistPage (map);
        return null;
    }
    /**
     * 查询所有
     * @return 所有用户
     */
    public List<BdOriginDomainDrug> listAll(){
        return drugCompareMapper.selectAll ();
    }
    /**
     * 更新对照
     */
    public int updateBdDrugInfoReg(Map map){

//        return drugCompareMapper.updateRegByCondition (map);
        return 0;
    }

    /**
     * 取消对照
     */
    public int updateRegCancel(Map map){

//        return drugCompareMapper.updateRegCancel (map);
        return 0;
    }

    // 删除医院药品字典值项
    public int deleteDrugItem(Map map){
//        return drugCompareMapper.deleteDrugItem (map);
        return 0;
    }

    // 修改前查询
    public BdOriginDomainDrug selectModify(Map map){
//        DrugCompareEntity entity = drugCompareMapper.selectModify (map);
        return null;
    }

    // 保存修改的内容
    public int saveModify(Map map){
//        return drugCompareMapper.saveModify (map);
        return 0;
    };
}
